package demo1;

public class MyArray {
    public Object[] array=new Object[10];

    public Object getArray(int pos) {//返回类型是Object
        return this.array[pos];
    }
    public void setArray(int pos,Object val) {//val类型是Object
       this.array[pos]=val;
    }
}
